home *** CD-ROM | disk | FTP | other *** search
- ` ------------------------------------------------------------------------
- ` How Low Can You Go? DarkForge Snippet (8/8/2000)
- ` ------------------------------------------------------------------------
- `
- ` Replace with any BMP file and watch it slide onto the screen!
- ` Hard to explain - so just run it okay?! First seen on the ST years ago.
-
- sync rate 0
- sync on
- hide mouse
-
- load bitmap "anhk_inside.bmp",1
-
- create bitmap 3,screen width(),screen height()
- set current bitmap 1
-
- if bitmap height(1)>screen height() then rescale=1
- if bitmap width(1)>screen width() then rescale=1
-
- if rescale=1
-
- sw=screen width()
- sh=screen height()
-
- if sw>bitmap width(1) then sw=bitmap width(1)
- if sh>bitmap height(1) then sh=bitmap height(1)
-
- get image 1,0,0,sw,sh
- create bitmap 2,screen width(),screen height()
- paste image 1,0,0
- set current bitmap 0
- delete bitmap 1
- create bitmap 1,screen width(),screen height()
- copy bitmap 2,1
- delete bitmap 2
-
- else
-
- set current bitmap 0
-
- endif
-
- ` Change the offset value for more/less speeeeed while drawing
-
- offset=1
- y=0
- y2=bitmap height(1)
-
- repeat
-
- set current bitmap 1
- get image 1,0,y2-offset,bitmap width(1),y2
- set current bitmap 3
-
- for a=0 to bitmap height(1)-y step offset
- paste image 1,0,a
- next a
-
- inc y,offset
- dec y2,offset
-
- set current bitmap 0
- copy bitmap 3,0
-
- sync
-
- until y=bitmap height(1)
-
- wait key
-
- y=480
- y2=bitmap height(1)-offset
-
- repeat
-
- set current bitmap 1
- get image 1,0,y2,bitmap width(1),y2+offset
- set current bitmap 3
-
- for a=1 to bitmap height(1)-y step offset
- paste image 1,0,480-a
- next a
-
- if y>0 then dec y,offset
- dec y2,offset
-
- set current bitmap 0
- copy bitmap 3,0
-
- sync
-
- until y=0
-
- cls 0
-
- end
-
-